// create-category.dto.ts

import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class UpdateCategoryDto {
  @ApiProperty({ description: '菜品类别名称' })
  @IsNotEmpty({ message: '菜品类别名称不能为空' })
  name: string;

  @ApiProperty({ description: '所属餐厅 ID' })
  @IsNotEmpty({ message: '所属餐厅 ID 不能为空' })
  readonly restaurantId: number;
}
